Fix stupid switch stmt mess-up that broke emulation
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 11 Jul 2005 09:22:15 +0000 (09:22 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 11 Jul 2005 09:22:15 +0000 (09:22 +0000)
of move to/from debug register.

xen/arch/x86/traps.c

index 6990d3a9e6b96f4b58470656ac0f272597bd0461..ab32049ec930b8b30fb9b48e564df7ccff28b89b 100644 (file)
@@ -843,6 +843,11 @@ static int emulate_privileged_op(struct cpu_user_regs *regs)
             UNLOCK_BIGLOCK(v->domain);
             break;
 
+        default:
+            goto fail;
+        }
+        break;
+
     case 0x23: /* MOV <reg>,DR? */
         opcode = insn_fetch(u8, 1, eip);
         modrm_reg |= (opcode >> 3) & 7;
@@ -852,11 +857,6 @@ static int emulate_privileged_op(struct cpu_user_regs *regs)
             goto fail;
         break;
 
-        default:
-            goto fail;
-        }
-        break;
-
     case 0x30: /* WRMSR */
         /* Ignore the instruction if unprivileged. */
         if ( !IS_PRIV(v->domain) )